{// 引入标签库 }
<tagLib name="html" />
{// 加载头部公共文件 }
<include file="Public:header" />
<!-- 主页面开始 -->
<div id="main" class="main" >
<!-- 主体内容  -->
<div class="content" >
<div class="title"><present name="areaName">[{$areaName}] </present>菜单列表 <span style="font-weight:normal">[ 分组:&nbsp;<volist name="groupList" id="tag"><a href="__URL__/index/group_id/{$key}">{$tag}</a>&nbsp;</volist><a href="__URL__">所有</a> ] </span></div>
<!--  功能操作区域  -->
<div class="operate" >
<html:imageBtn name="add" value="新增" click="add()" style="impBtn hMargin fLeft shadow" />
<html:imageBtn name="edit" value="编辑" click="edit()" style="impBtn hMargin fLeft shadow" />
<html:imageBtn name="delete" value="删除" click="del()" style="impBtn hMargin fLeft shadow" />
<!-- 查询区域 -->
<div class="fRig">
<form method='post' name="forms" action="__URL__">
<div class="fLeft"><span id="key"><input type="text" name="name" title="名称查询" class="medium" ></span></div>
<html:imageBtn type="submit" name="search" value="查询" style="impBtn hMargin fLeft shadow" />
</div>
<!-- 高级查询区域 -->
<div  id="searchM" class=" none search cBoth" >
</div>

</form>
</div>
<!-- 功能操作区域结束 -->

<!-- 列表显示区域  -->
<div class="list" >
<div id="result" class="result none"></div>

<table id="checkList" class="list" cellpadding=0 cellspacing=0 >
<form name="adminForm" method="post" action="__URL__/sort">
<tr>
	<td height="5" colspan="7" class="topTd" ></td>
</tr>
<tr class="row" >
	<th width="8"><input type="checkbox" id="check" onclick="CheckAll('checkList')"></th>
	<th>排序</th>
	<th width="10%"><a href="javascript:sortBy('id','1','index')" title="按照编号升序排列 ">编号<img src="/Admin/Tpl/default/Public/images/desc.gif" width="12" height="17" border="0" align="absmiddle"></a></th>
	
	<th><a href="javascript:sortBy('name','1','index')" title="按照菜单名称升序排列 ">菜单名称</a></th>
	<th><a href="javascript:sortBy('status','1','index')" title="按照状态升序排列 ">状态</a></th>
	<th >操作</th>
</tr>

<volist name="list" id="vo">
<tr class="row" onmouseover="over(event)" onmouseout="out(event)" onclick="change(event)" >
	<td><input type="checkbox" name="key"	value="{$vo.id}"></td>
	<td><input type="text" name="sort[{$vo.id}]" value="{$vo.sort}" size="1" /></td>
	<td>{$vo.id}</td>
	<td><a href="__URL__/index/pid/{$vo.id}">{$vo.name}</a></td>
	<td><IMG SRC="/Public/Images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="正常"></td>
	<td>
		<a href="__URL__/add/pid/{$vo.id}">添加子菜单</a>&nbsp;&nbsp;
		<a href="__URL__/edit/id/{$vo.id}">编辑</a>&nbsp;&nbsp;
		<if condition="$vo['status'] eq 1">
		<a href="__URL__/forbid/field/status/id/{$vo.id}">禁用</a>&nbsp;
		</if>
		<if condition="$vo['status'] eq 0">
		<a href="__URL__/resume/field/status/id/{$vo.id}">禁用</a>&nbsp;
		</if>
	</td>
</tr>
</volist>
<tr>
	<td height="5" colspan="8" class="bottomTd">
	<input type="button" value="排序" name="foreverdel" class="impBtn hMargin fLeft shadow" onclick="sort_list('/sort')" />
	</td>
</tr>
</form>
</table>

</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<!-- 主页面结束 -->

